<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets">


<ui:composition template="/templates/layout.xhtml">

	<ui:define name="corpo">

		<h:form id="form">
			<p:growl id="growl" showDetail="false" />

			<h:inputHidden value="#{bancoBean.banco.idBanco}" />
			<p:accordionPanel>
				<p:tab title="Dados do Banco">
					<p:fieldset>
						<div id="cadastro">
							<div style="margin-top: 10px;">
								<br />
									<h:panelGrid columns="2">
 										<h:outputLabel value="Nome Banco :" for="nomebanco" style="font-weight:bold"/> 
 										<h:panelGroup> 
 											<p:inputText id="nome" label="Nome Banco" 
 												value="#{bancoBean.banco.nomeBanco}" required="true" 
 												requiredMessage="Informe o banco" size="30" 
 												style="heght:30px;" /> 
 											<span id="erro"> <h:message for="nomebanco" /></span> 
 										</h:panelGroup> 
										
										<h:outputLabel value="CODIGO :" for="codigobanco" style="font-weight:bold"/>
										<h:panelGroup>
											<p:inputMask value="#{bancoBean.banco.codigoBanco}" id="codigobanco"
												mask="999" required="true"
												requiredMessage="Informe um código para o banco">
											</p:inputMask>
											<span id="	erro"> <h:message for="codigobanco" /></span>
										</h:panelGroup>
									</h:panelGrid>
							</div>
						</div>
<br></br>
					</p:fieldset>
				</p:tab>

			</p:accordionPanel>
			<br></br>
			

			<h:panelGroup>
				<h:commandButton value="Salvar" style="height: 30px"
					action="#{bancoBean.salvar}" />
			</h:panelGroup>
		</h:form>

	</ui:define>
</ui:composition>
</html>
